package com.woniuxy.course.mapper;

import com.woniuxy.commons.entity.CourseTag;
import com.woniuxy.commons.entity.TagRelation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author LuoChen
 * @DateTime 2020-08-04 11:54:33
 * @Description
 */
@Mapper
@Repository
public interface CourseTagMapper {

    /**
     * 批量增加标签
     * @param courseTags
     * @return: int
     * @author: LuoChen
     * @dateTime: 2020-08-04 15:55:35
     */
    int addCourseTags(List<CourseTag> courseTags);

    /**
     * 新增中间表
     * @param tagRelations
     * @return: int
     * @author: LuoChen
     * @dateTime: 2020-08-04 15:56:19
     */
    int addRelation(List<TagRelation> tagRelations);

    /**
     * 查找所有的标签
     * @return: java.util.List<com.woniuxy.commons.entity.CourseTag>
     * @author: LuoChen
     * @dateTime: 2020-08-05 01:24:15
     */
    List<CourseTag> findAllTags();
}
